#ifndef MODIFYMEMBERCARDPASSWORD_H
#define MODIFYMEMBERCARDPASSWORD_H

#include <QWidget>
class InquireSql;

enum LastClickModifyMemberCardPassword {lineEditOriginalPassword, lineEditNewPassword,
                lineEditConfirmPassword};

namespace Ui {
class ModifyMembercardPassword;
}

class ModifyMembercardPassword : public QWidget
{
    Q_OBJECT
    
public:
    explicit ModifyMembercardPassword(QWidget *parent = 0);
    ~ModifyMembercardPassword();
    void displayMembercardID(const QString&);
    bool eventFilter(QObject *target, QEvent *event);
    
private slots:

    void on_pushButtonModify_clicked();

    void on_pushButtonCancel_clicked();

    void on_checkBoxForcedToModifyPassword_clicked(bool checked);

private:
    Ui::ModifyMembercardPassword *ui;
    InquireSql *m_sql;
    bool enforcement;
    int m_lastClick;
};

#endif // MODIFYMEMBERCARDPASSWORD_H
